<?php $url = new Url(); ?>
<?php $this->renderPartial("application.views.layouts._menu");?>
<div class="about">
    <!-- box login -->
    <?php $this->widget("BoxLogin");?>
    <!-- end box login -->
    
      <br />  
      <?php $id_field="appId"; ?>
     <div class="TB">
         <table align="center">
            <tr>
            <td align="center"><a href="<?php echo Common::sanitize_output(Yii::app()->params['base_url'].ltrim(Url::createUrl('fileApp/download',array($id_field=>7,"userId"=>$_SESSION['userId'])),"/")) ?>"><img class="kc_TB_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/banner_smskute_tet.png"></a></td>
            <td align="center"><a href="<?php echo Common::sanitize_output(Yii::app()->params['base_url'].ltrim(Url::createUrl('fileApp/download',array($id_field=>23,"userId"=>$_SESSION['userId'])),"/")) ?>"><img class="kc_TB_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/banner_tuvi2014.png"></a></td>
            </tr>
            <tr>
            <td align="center"><a href="<?php echo Common::sanitize_output(Yii::app()->params['base_url'].ltrim(Url::createUrl('fileApp/download',array($id_field=>7,"userId"=>$_SESSION['userId'])),"/")) ?>" style="color: red;margin-left: -10px;" class="xanhdam" href="#"><b> Kute Tết 2014</b></a></td>
            <td align="center"><a href="<?php echo Common::sanitize_output(Yii::app()->params['base_url'].ltrim(Url::createUrl('fileApp/download',array($id_field=>23,"userId"=>$_SESSION['userId'])),"/")) ?>" style="color: red; margin-left: -10px;" class="xanhdam" href="#"><b>Tử vi 2014</b></a></td>
            </tr>
         </table>
    </div>
    
    
    
    <h2><a><img width="16" height="18" class="kc_TB_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-icon-thongbao.png"></a><a class="xanhdam" href="#">Thông báo</a>
    </h2>
    <div class="TB">
        <ul>
            <?php 
                if(!empty($tip)){
                    foreach ($tip as $key=>$value){?>
                    <li><a class="xanh" href="<?php echo Url::createUrl("home/tipDetail",array("id"=>$value['id'],"alias"=>$value['alias'])); ?>"><img width="9" height="9" class="kc_TB_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-icon-thongbao-tieude.gif"><?php echo $value['title'] ?></a>
                    </li>
                    <?php } }?>
        </ul>
    </div>
    <h2><a><img width="16" height="18" class="kc_SK_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-icon-sukien-tieude.png"></a><a class="xanhdam" href="#">Sự Kiện</a></h2>
    <div class="SK">
        <?php foreach ($event as $key=>$value){?>
            <div class="SK_1">
                <a class="SK_button_<?php echo $key; ?>" href="<?php echo Url::createUrl("home/eventDetail",array("id"=>$value['gameId'],"alias"=>$value['alias'])); ?>"><?php echo $value['title_game']; ?></a><a class="denxam" href="<?php echo Url::createUrl("home/eventDetail",array("id"=>$value['gameId'],"alias"=>$value['alias'])); ?>"><?php echo $value['title']; ?></a>
            </div>

            <?php } ?>
    </div>
    <h2>
        <a><img width="16" height="18" class="kc_DV_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-icon-dichvu-tieude.png"></a><a class="xanhdam" href="#">Dịch Vụ</a>
    </h2>
    <div class="DV">
        <div class="DV_1">
            <a href="<?php echo Url::createUrl("service/gameOnlineList",array("t"=>0)); ?>"><img width="90" height="87" class="kc_DV" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-game-online.png"></a><br><span><a class="xanhDV" href="<?php echo Url::createUrl("service/gameOnlineList",array("t"=>0)); ?>">Game Online</a></span>
        </div>
        <div class="DV_1">
            <a href="<?php echo Url::createUrl("service/gameOfflineList",array("t"=>0)); ?>"><img width="90" height="87" class="kc_DV" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-game-offline.png"></a><br><span><a class="xanhDV" href="<?php echo Url::createUrl("service/gameOfflineList",array("t"=>0)); ?>">Game Offline</a></span>
        </div>
        <div class="DV_1">
            <a href="<?php echo $url->createUrl("service/applicationDetail",array("alias"=>"clip_sexy","id"=>3,"type"=>2)); ?>"><img width="90" height="87" class="kc_DV" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-clip.png"></a><br><span><a class="xanhDV" href="<?php echo $url->createUrl("service/applicationDetail",array("alias"=>"clip_sexy","id"=>3,"type"=>2)); ?>">Bán Clip</a></span>
        </div>
        <div class="both"></div>
    </div>
    <div class="DVa">
        <div class="DV_1">
            <a href="<?php echo Url::createUrl("service/appList",array("t"=>0)); ?>"><img width="90" height="87" class="kc_DV" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-application.png"></a><br><span><a class="xanhDV" href="<?php echo Url::createUrl("service/appList",array("t"=>0)); ?>">Bán Apps</a></span>
        </div>
        <div class="DV_1">
            <a href="<?php echo Url::createUrl("service/attachPaymentApkOption"); ?>"><img width="90" height="87" class="kc_DV" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-gan-kich-hoat-APK.png"></a><br><span><a class="xanhDV" href="<?php echo Url::createUrl("service/attachPaymentApkOption"); ?>">Gắn kích hoạt APK</a></span>
        </div>
        <div class="DV_1">
            <a href="<?php echo Url::createUrl("service/attachPaymentJarOption"); ?>"><img width="90" height="87" class="kc_DV" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-gan-kich-hoat-SMS.png"></a><br><span><a class="xanhDV" href="<?php echo Url::createUrl("service/attachPaymentJarOption"); ?>">Gắn kích hoạt Java</a></span>
        </div>
        <div class="both"></div>
    </div>

    <h2 style="margin: 5px;">
        <a><img width="25" height="24" class="kc_BC_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-icon-boxchat-tieude.png"></a><a class="xanhdam" href="#">BOX CHAT</a><br>
    </h2>
    
    <div class="BC_1">
        <form action="" method="post" name="form">
            <div class="BC_nd">
                <input type="text" class="box_BC" maxlength="500" name="content"><input type="submit" value="Gửi chat" class="button_BC" >
            </div>
        </form>
        <?php foreach($chat as $key=>$value){ ?>    
            <div class="BC_nd_1">
                <img width="16" height="16" class="kc_BC_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-icon-user-chat.png"><strong class="chu_user_chat"><?php echo $value['username'] ?>:</strong>&nbsp; <?php echo $value['content']; ?><br>
                <span>(<?php echo Common::genDate($value["create_date"]);?>) </span>
            </div>
            <?php } ?>
        <div class="BC_nd_2">

            <?php if($numberPage > 1) { ?>


                <?php                         
                    $url = Yii::app()->params["base_url"];
                    $url1 = rtrim(Yii::app()->params["base_url"], "/");                        
                    echo Paging::show_paging_wap_user($numberPage, $currentPage, $url, $url1); 
                ?>


                <?php } ?> 

        </div>
    </div>
    <!-- box footer -->
    <?php $this->widget("BoxFooter");?>
    <!-- end box footer -->
</div>
<script type="">
    function Quote(mes_id){
        //content_quote=$("#li_"+mes_id).text();
        content_quote=document.getElementById("li_"+mes_id).innerHTML;
        document.form.textarea.value="[quote]"+content_quote.trim()+"[/quote]";
    }
</script>
